package com.slj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.slj.comm.responce.PageResult;
import com.slj.comm.responce.R;
import com.slj.model.entity.Inventory;
import com.slj.model.vo.InventoryProductVO;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

public interface InventoryService extends IService<Inventory> {
    R<String> addInventory(Inventory inventory);
    R<String> deleteInventory(Integer id);
    R<String> updateInventory(Inventory inventory);
    R<Inventory> getInventoryById(Integer id);
    R<List<InventoryProductVO>> getInventoryPage(Integer pageNum, Integer pageSize, String productName);
    R<String> adjustSafeQuantity(Integer inventoryId, Integer safeQuantity);
    void exportInventoryToExcel(HttpServletResponse response);
    R<String> batchUpdateInventory(List<Inventory> inventoryList);
    R<List<Inventory>> getInventoryBelowSafeQuantity();
    R<PageResult<InventoryProductVO>> getInventoryProductPage(Integer pageNum, Integer pageSize, String productName);
    R<List<InventoryProductVO>> getInventoryProductBelowSafeQuantity();
}